	
	package Dao;
	
	import java.util.List;
	
	import enitys.Grade;
	
	public interface GradeDao {
				
		
		/**
		 * 管理员查看所有的信息
		 * @param grade
		 * @return
		 * @throws Exception
		 */
		public List<Grade> gradeAllinfo() throws Exception;
		
		
		/**
		 * 学生查看个人成绩信息
		 * @param grade
		 * @param username
		 * @return
		 * @throws Exception
		 */
		public List<Grade> personGrade(String username) throws Exception;
		
		
		
		/**
		 * 管理员更新学生成绩
		 * @param grade
		 * @return
		 * @throws Exception
		 */
		
		
		public boolean UpdateGrade(Grade grade) throws Exception;
		
		
		
		/**
		 * 管理员删除学生成绩
		 * @param grade
		 * @return
		 * @throws Exception
		 */
		
		public int deleteGrade(int id) throws Exception;
		
		
		
		/**
		 * 管理员添加学生成绩
		 * @param grade
		 * @return
		 * @throws Exception
		 */
	
		public boolean addGrade(Grade grade)  throws Exception;
	}
